<?php

namespace App\Http\Requests\Api\V1_6_6;

use Illuminate\Foundation\Http\FormRequest;

class CollectMoneyBillRequest extends FormRequest
{
    /**
     * Determine if the user is authorized to make this request.
     *
     * @return bool
     */
    public function authorize()
    {
        return true;
    }

    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {
        return [
            'bank_card_id' => 'required',
            'credit_card_id' => 'required',
            'withdraw_money' => 'required',
        ];
    }

    public function messages()
    {
        return [
            'bank_card_id.required' => '储蓄卡id不能为空',
            'credit_card_id.required' => '信用卡id不能为空',
            'withdraw_money.required' => '金额不能为空',
        ];
    }
}
